package com.dyit.springcloud.mq.config;

import org.springframework.amqp.core.TopicExchange;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.Collection;

/**
 * 配置exchange
 */
@Configuration
public class ExchangeConfig {
    @Bean
    public TopicExchange topicExchange(){
        return new TopicExchange(RabbitMqConfig.TOPIC_EXCHANGE,true,false);//exchange
    }

}
